package com.onpositive.notes.parser;

import java.io.Serializable;

public class Mark implements Serializable {
	
	private static final long serialVersionUID = 2841880168352293827L;

	public Mark() {
		super();
	}

	String str, tag ;

	public Mark(String str) {
		super();
		this.str = str;
	}

	public String getStr() {
		return str;
	}

	public String toString(){
		return "<br/>:\"" + str+"\"" ;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((str == null) ? 0 : str.hashCode());
		result = prime * result + ((tag == null) ? 0 : tag.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Mark other = (Mark) obj;
		if (str == null) {
			if (other.str != null)
				return false;
		} else if (!str.equals(other.str))
			return false;
		if (tag == null) {
			if (other.tag != null)
				return false;
		} else if (!tag.equals(other.tag))
			return false;
		return true;
	}

}
